
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
    <!-- start content -->
    <div id="content">
        <?php echo form_open_multipart();
        ?>
        <table>
            <tr>
                <td>
                    product name:
                </td>
                <td>
                    <?php echo form_input('product_name',set_value('product_name', (isset($product) ? $product->product_name : ''))).form_error('product_name'); ?>
                </td>

            </tr>
            <tr>
                <td>Category:</td>
                <td><?php echo form_dropdown('category_id',$this->category_model->getOptions(),set_value('category_id',(isset($product) ? $product->category_id : ''))).form_error('category_id');?></td>
            </tr>
            <tr>
                <td>
                    product description :
                </td>
                <td style="width: 850px;">
                    <?php echo form_textarea(array('name'=>'product_description','style'=>'width:850px'),set_value('product_description', (isset($product) ? $product->product_description : ''))).form_error('product_description'); ?>
                    <script type="text/javascript">CKEDITOR.replace( 'product_description',{height:'250px'}); </script>
                </td>

            </tr>
            <tr>
                <td>
                    product url:
                </td>
                <td>
                    <?php echo form_textarea('product_url',set_value('product_url', (isset($product) ? $product->product_url : ''))).form_error('product_url'); ?>
                </td>

            </tr>
            <tr>
                <td>
                    product sub name:
                </td>
                <td style="width: 825px;">
                    <?php echo form_textarea(array('name'=>'product_sub_name','style'=>'width:825px'),set_value('product_sub_name', (isset($product) ? $product->product_sub_name : ''))).form_error('product_sub_name'); ?>
                    <script type="text/javascript">CKEDITOR.replace( 'product_sub_name',{height:'250px'}); </script>
                </td>
            </tr>
            <tr>
                <td>product price:</td>
                <td>
                    <?php echo form_input('product_price',set_value('product_price', (isset($product) ? $product->product_price : ''))).form_error('product_price'); ?>
                </td>
            </tr>
            <tr>
                <td> Product Shipping</td>
                <td><?php echo form_input('product_shipping',set_value('product_shipping', (isset($product) ? $product->product_shipping : ''))).form_error('product_shipping');?></td>
            </tr>
            <tr>
                <td>product images</td>
                <td>
                    <?php echo form_upload('product_image',set_value('product_image')).form_error('product_image');?>
                </td>
            </tr>
           <!-- <tr >
                <td width="30%" height="28"><div align="right">Nội dung:&nbsp;&nbsp;</div></td>
                <td>
                    <textarea cols="60" rows="5" name="tom_tat" id="tom_tat"></textarea>
                    <script>
                        CKEDITOR.replace( 'tom_tat',
                                {
                                    height: "100px",
                                    toolbar : [
                                        [ 'Source','NewPage','DocProps','Preview','-','Templates' ],
                                        [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ],
                                        [ 'Find','Replace','-','SelectAll' ],
                                        [ 'Link','Unlink','Anchor' ],
                                        //[ 'Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak' ],
                                        [ 'Maximize', 'ShowBlocks' ],
                                        [ 'NumberedList','BulletedList','-','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],
                                        [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ],
                                        [ 'Format','Font','FontSize' ],
                                        [ 'TextColor','BGColor' ]
                                    ]
                                });
                    </script>
                </td>
            </tr>-->
        </table>
        <?php echo form_submit('','submit')?>
        <?php echo form_close();?>
        <div class="clear">&nbsp;</div>

    </div>
    <!--  end content -->
    <div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->




